#include "Err.h"

const char* lexErrMsg[] = {
    "Illegal Identifer",
    "Mysterious character"
};

const char* synErrMsg[] = {
    "Syntax error",
    "Illegal statement",
    "Illegal definition",
    "Missing ';'",
    "Missing ','",
    "Missing '('",
    "Missing ')'",
    "Missing '['",
    "Missing ']'",
    "Missing '{'",
    "Missing '}'"
};

const char* semErrMsg[] = {
    "",
    "Undefined variable '%s'",
    "Undefined function '%s'",
    "Redefined variable '%s'",
    "Redefined function '%s'",
    "Type mismatched for assignment",
    "The left-hand side of an assignment must be a variable",
    "Type mismatched for operands",
    "Type mismatched for return",
    "Incompatible arguments for function '%s'",
    "Not an array",
    "'%s' is not a function",
    "Index or condition is not an integer",
    "Type or variant is not an structure",
    "Non-existent field '%s'",
    "Redefined field or illegal assignment to field '%s'",
    "Redefined structure '%s'",
    "Undefined structure '%s'"
};

const char* tsErrMsg[] = {
    "Code contains variables or parameters of structure type.",
    "Code contains variables or parameters of float type.",
    "Code contains pointer assignment"
};